home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / unique.hlp < prev    next >
Text File  |  1985-08-19  |  2KB  |  48 lines

  1. **********************************************************************
  2. *                             UNIQUE                                 *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.     UNIQUE - Finds unique lines in a sorted file.
  8. USAGE:
  9.     UNIQUE [<fid] [-U] [-C] [-L] [-S] [-D] [-N] [-H] [>fid]
  10. FUNCTION:
  11.     This program finds and displays unique or duplicated lines in
  12.     a sorted file.  The default usage is to remove extra duplicated
  13.     lines from a sorted list.  
  14.     Input and output are the standard redirectable input and
  15.     output.  Options include:
  16.     
  17.     -U   Convert to upper case before comparing.
  18.     -C   First column to begin compare. 1 is default.
  19.          It is ok to specify a position longer than some
  20.          lines.  Lines shorter will compare as equal.
  21.     -L   Length of field to compare.  Full line length is default.
  22.     -S   Display only unique lines.
  23.     -D   Display only duplicated lines
  24.     -N   Prefix each line with the number of duplicates found.
  25.          1 for single lines, 2 for double lines, etc.
  26.     -H   Display the available options.
  27.     
  28. EXAMPLE:
  29.     SORT <A -C10 -L10 -R |UNIQUE -C10 -L10
  30.     LS *.* |UNIQUE -D   {Finds duplicate named files}
  31.     WORDS <FILE |SORT |UNIQUE -N |SORT  {Gives word list by frequency}
  32.  
  33.         Command Line                       
  34.  
  35. ___________________________________  
  36.                                   |  
  37.                                   |  
  38.                                   |  OPTIONS
  39.                                   |  
  40.                                   |                  
  41.                     ______________V______________    
  42.  Standard Input     |                           |   Standard Output
  43.      TEXT           |                           |    SELECTED TEXT
  44. ------------------->|          UNIQUE           |----------------------->
  45.                     |                           |
  46.                     |                           |
  47.                     |___________________________|
  48.